home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / sockdem.zip / _SETUP.1 / mswinsockcontrol.h < prev    next >
C/C++ Source or Header  |  1997-06-19  |  3KB  |  89 lines

  1. #if !defined(AFX_MSWINSOCKCONTROL_H__396C63EF_E702_11D0_9E91_00A0249EBADC__INCLUDED_)
  2. #define AFX_MSWINSOCKCONTROL_H__396C63EF_E702_11D0_9E91_00A0249EBADC__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CMSWinsockControl wrapper class
  14.  
  15. class CMSWinsockControl : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CMSWinsockControl)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x248dd896, 0xbb45, 0x11cf, { 0x9a, 0xbc, 0x0, 0x80, 0xc7, 0xe7, 0xb7, 0x8d } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.  
  43. // Operations
  44. public:
  45.     long GetProtocol();
  46.     void SetProtocol(long nNewValue);
  47.  
  48.     CString GetRemoteHostIP();
  49.  
  50.     CString GetLocalHostName();
  51.  
  52.     CString GetLocalIP();
  53.  
  54.     long GetSocketHandle();
  55.  
  56.     long GetRemotePort();
  57.     void SetRemotePort(long nNewValue);
  58.  
  59.     long GetLocalPort();
  60.     void SetLocalPort(long nNewValue);
  61.  
  62.     short GetState();
  63.  
  64.     long GetBytesReceived();
  65.  
  66.     void Connect(const VARIANT& RemoteHost, const VARIANT& RemotePort);
  67.  
  68.     void Listen();
  69.     
  70.     void Accept(long requestID);
  71.     
  72.     void SendData(const VARIANT& data);
  73.     void GetData(VARIANT* data, const VARIANT& type, const VARIANT& maxLen);
  74.     void PeekData(VARIANT* data, const VARIANT& type, const VARIANT& maxLen);
  75.     
  76.     void Close();
  77.     
  78.     void Bind(const VARIANT& LocalPort, const VARIANT& LocalIP);
  79.     
  80.     CString GetRemoteHost();
  81.     
  82.     void SetRemoteHost(LPCTSTR lpszNewValue);
  83. };
  84.  
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  87.  
  88. #endif // !defined(AFX_MSWINSOCKCONTROL_H__396C63EF_E702_11D0_9E91_00A0249EBADC__INCLUDED_)
  89.